home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NetNews Offline 1
/
NetNews Offline Volume 1.iso
/
news
/
fido
/
ger
/
amiprog
/
36
< prev
next >
Wrap
Internet Message Format
|
1996-03-16
|
3KB
From: Stefan_Rompf@p2.f1529.n244.z2.fido.sub.org (Stefan Rompf)
Organization: Garbage In Garbage Out
Path: f2.n244.z2.fidonet.org!not-for-mail
Newsgroups: fido.ger.amiprog
Subject: FileSysteme/RDB
Message-ID: <32791400@lsdg.adsp.sub.org>
References: <MSGID_2=3A2449=2F630.15_302a69b8@fidonet.org>
Date: Sat, 12 Aug 1995 10:35:10 +0200
Hi Thore,
> (Internal)LoadSeg() liest nur aus DATEIEN!!! Nicht aus dem Speicher oder
> direkt vom RDB!! Der RDB is fuer das FileSystem nicht erreichbar.
LoadSeg() ja, InternalLoadSeg() nein. Zugegeben, die Autodocs sind etwas
missverstaendlich:
--------------------------------------------8<----------------------------
dos.library/InternalLoadSeg dos.library/InternalLoadSeg
NAME
InternalLoadSeg -- Low-level load routine (V36)
SYNOPSIS
seglist = InternalLoadSeg(fh,table,functionarray,stack)
D0 D0 A0 A1 A2
BPTR InternalLoadSeg(BPTR,BPTR,LONG *,LONG *)
FUNCTION
Loads from fh. Table is used when loading an overlay, otherwise
should be NULL. Functionarray is a pointer to an array of functions.
Note that the current Seek position after loading may be at any point
after the last hunk loaded. The filehandle will not be closed. If a
stacksize is encoded in the file, the size will be stuffed in the
LONG pointed to by stack. This LONG should be initialized to your
default value: InternalLoadSeg() will not change it if no stacksize
is found. Clears unused portions of Code and Data hunks (as well as
BSS hunks). (This also applies to LoadSeg() and NewLoadSeg()).
If the file being loaded is an overlaid file, this will return
-(seglist). All other results will be positive.
NOTE to overlay users: InternalLoadSeg() does NOT return seglist in
both D0 and D1, as LoadSeg does. The current ovs.asm uses LoadSeg(),
and assumes returns are in D1. We will support this for LoadSeg()
ONLY.
INPUTS
fh - Filehandle to load from.
table - When loading an overlay, otherwise ignored.
functionarray - Array of function to be used for read, alloc, and free.
FuncTable[0] -> Actual = ReadFunc(readhandle,buffer,length),DOSBase
D0 D1 A0 D0 A6
FuncTable[1] -> Memory = AllocFunc(size,flags), Execbase
D0 D0 D1 a6
FuncTable[2] -> FreeFunc(memory,size), Execbase
A1 D0 a6
stack - Pointer to storage (ULONG) for stacksize.
RESULT
seglist - Seglist loaded or NULL. NOT returned in D1!
BUGS
Really should use tags.
SEE ALSO
LoadSeg(), UnLoadSeg(), NewLoadSeg(), InternalUnLoadSeg()
--------------------------------------------8<----------------------------
Es wird zwar ein Filehandle uebergeben, aber das existiert nur, um an
FuncTable[0] weitergereicht zu werden. Und da Du dort dann eine eigene
Funktion eintraegst, kannst Du die Daten auch von irgendwoher anders holen.
cu.. Stefan